<?php

require('../configs/include.php');

class c_smarty extends super_controller {

    public function display() {
        $arr = array('red', 'green', 'blue');
        $this->engine->assign('my_colors', $arr);
        $people = array('Name' => 'John', 'Last Name' => 'Doe', 'email' => 'jd@example.com');
        $this->engine->assign('my_people', $people);
        $this->engine->assign('title', 'Examples smarty');
        $this->engine->display('header.tpl');
        $this->engine->display('smarty.tpl');
        $this->engine->display('footer.tpl');
    }

    public function run() {
        $this->display();
    }

}

$call = new c_smarty();
$call->run();
?>